const fs = require('fs');
import { getTragetPath } from '../../env'

export function writeFile(list){
    let codeMere='';
    const distPath=getTragetPath();
    list.forEach((compileInfo)=>{
        const {code}=compileInfo;
        codeMere+=code;
    });
    fs.writeFileSync(distPath+'/view.js',codeMere);
}
